import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/emergency_plans_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/emergency_plans_entity.g.dart';

/// 敏捷应急-应急预案列表实体
@JsonSerializable()
class EmergencyPlansEntity {
  EmergencyPlansEntity();

  factory EmergencyPlansEntity.fromJson(Map<String, dynamic> json) => $EmergencyPlansEntityFromJson(json);
  late String companyCode = '';
  late String createBy = '';
  late String createById = '';
  late String createDate = '';
  late String deleted = '';
  late String emergencyId = '';
  late String emergencyPlanLevel = '';
  late String emergencyPlanLevelName = '';
  late String emergencyPlanName = '';
  late String emergencyPlanSelection = '';
  late String emergencyResourceInvestigation = '';
  late String expertReviewOpinions = '';
  late String id = '';
  late String initialReleaseDate = '';
  late int majorHazardAssociation = 0;
  late String majorHazardIds = '';
  late String majorHazardIdsName = '';
  late String planDocument = '';
  late int planType = 0;
  late String planTypeName = '';
  late String preparedBy = '';
  late String preparedByDate = '';
  late String preparedByPerson = '';
  late String probationAccidentIds = '';
  late String probationAccidentNames = '';
  late String probationDepartmentId = '';
  late String processEncoding = '';
  late String regularAssess = '';
  late String regularAssessName = '';
  late int regularAssessNum = 0;
  late String reviewComments = '';
  late String riskAssessmentReport = '';
  late String riskReportFileUrl = '';
  late int riskReportPeripheryUnit = 0;
  late int toExamineStatus = 0;
  late String updateBy = '';
  late String updateById = '';
  late String updateDate = '';
  late String workTypeIds = '';

  Map<String, dynamic> toJson() => $EmergencyPlansEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
